package com.template.domain.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.template.domain.entity.base.BaseEntity;
import com.template.config.mybatisflex.listener.MyInsertListener;
import com.template.config.mybatisflex.listener.MyUpdateListener;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 实体类。
 *
 * @author dong
 * @since 2023-09-03
 */
@Getter
@Setter
@Accessors(chain = true)
@Table(value = "user_role", onInsert = MyInsertListener.class, onUpdate = MyUpdateListener.class)
public class UserRole extends BaseEntity {

    @Id
    private Long id;

    private Long userId;

    private Long roleId;

}
